package cn.zhiquxing.test;

public class SafePlus {
    
    private Integer amount = 0;
    
    public synchronized void add() {
        amount++;
    }
    
    public synchronized int get() {
        return amount;
    }
}
